package com.example.server.config.init;

import com.example.server.manage.gptdialogue.properties.GptProperties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 *
 * 项目完全启动成功后的执行的一些处理操作
 * @author wangsong
 * @mail 1720696548@qq.com
 * @date 2020/7/23 0023 9:04
 * @version 1.0.1
 */
@Component
@Slf4j
public class CommandLineRunnerImpl implements CommandLineRunner {


    @Autowired
    private GptProperties gptProperties;

    @Override
    public void run(String... args) {
        log.info(gptProperties.toString());
    }
}